package com.spzx.cart.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Schema(description = "购物车信息")
@Data
public class CartInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "skuid")
    private Long skuId;

    @Schema(description = "放入购物车时价格")
    private BigDecimal cartPrice;

    @Schema(description = "实时价格")
    private BigDecimal skuPrice;

    @Schema(description = "数量")
    private Integer skuNum;

    @Schema(description = "图片文件")
    private String thumbImg;

    @Schema(description = "sku名称")
    private String skuName;

    @Schema(description = "是否选中")
    private Integer isChecked = 1;

    @TableField(exist = false)
    private List<OrderItem> orderItemList;
}
